//
//  TopScrollMenu.h
//  类似于网易的选项卡_加滑块动画_自己封装
//
//  Created by Gollum on 16/8/30.
//  Copyright © 2016年 Gollum. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TopScrollMenu;

@protocol TopScrollMenuDelegate <NSObject>
// delegate 方法
- (void)TopScrollMenu:(TopScrollMenu *)topScrollMenu didSelectTitleAtIndex:(NSInteger)index;

@end

@interface TopScrollMenu : UIScrollView

/** 滚动标题数组 */
@property (nonatomic, strong) NSArray *scrollTitleArr;
/** 静止标题数组 */
@property (nonatomic, strong) NSArray *staticTitleArr;
/** 存入所有Label */
@property (nonatomic, strong) NSMutableArray *allTitleLabel;

@property (nonatomic, weak) id<TopScrollMenuDelegate> topScrollMenuDelegate;

/** 类方法 */
+ (instancetype)topScrollMenuWithFrame:(CGRect)frame;


#pragma mark - - - 给外界ScrollView提供的方法以及自身的方法实现
/** 滚动标题选中颜色改变以及指示器位置变化 */
- (void)scrollTitleLabelSelecteded:(UILabel *)label;
/** 滚动标题选中居中 */
- (void)scrollTitleLabelSelectededCenter:(UILabel *)centerLabel;

/** 静止标题选中颜色改变以及指示器位置变化 */
- (void)staticTitleLabelSelecteded:(UILabel *)label;

@end
